package online.cmagic.structureType.proxy.dynamicproxy;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

/**
 * @author wsc
 * @date: 2020年04月14日 13:13
 * @since JDK 1.8
 */
public class StarInvocationHandle implements InvocationHandler {

    private Object object;

    public StarInvocationHandle(Object object) {
        this.object = object;
    }

    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        return method.invoke(object,args);
    }
}
